package com.weasing.res.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * 权限实体
 * 
 * @author zhaoqx
 *
 */
public class WxPrivilege implements java.io.Serializable {
	private Integer id;
	private String name;// 权限名称
	private String url;// 权限对应的url访问路径
	private WxPrivilege parent;// 当前权限的上级权限
	private Set<WxPrivilege> children = new HashSet<WxPrivilege>();// 当前权限的下级权限集合
	private Set<WxRole> roles = new HashSet<WxRole>();// 当前权限对应的角色集合

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}

	public WxPrivilege getParent() {
		return parent;
	}

	public void setParent(WxPrivilege parent) {
		this.parent = parent;
	}

	public Set<WxPrivilege> getChildren() {
		return children;
	}

	public void setChildren(Set<WxPrivilege> children) {
		this.children = children;
	}

	public Set<WxRole> getRoles() {
		return roles;
	}

	public void setRoles(Set<WxRole> roles) {
		this.roles = roles;
	}
}
